package com.huluobo.a2203kotlindouyindemo.cart

import androidx.lifecycle.MutableLiveData
import com.huluobo.base.bean.CartBeanResult
import com.huluobo.base.viewmodel.BaseViewModel

/**
 *  Created by LC on 2024/7/10.
 */
class CartViewModel : BaseViewModel<CartRepo>() {
    val getCartListSuccess = MutableLiveData<CartBeanResult>()
    val getCartListFailed = MutableLiveData<String>()

    fun getCartList() {
        repo.getCartList(getCartListSuccess, getCartListFailed)
    }

    override fun createRepo(): CartRepo = CartRepo()
}